﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Detail.aspx.vb" Inherits="Prototype.Experience_Detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="Experience_DetailDataSource" Height="200px" Width="800px" AllowSorting="True">
            <Columns>
                <asp:BoundField DataField="Exp_Author" ItemStyle-CssClass="gridview_color_b" ItemStyle-Width="80px" HeaderText="Author" 
                    SortExpression="Exp_Author" />
                <asp:BoundField DataField="Exp_Title" ItemStyle-CssClass="gridview_color_a" ItemStyle-Width="120px" HeaderText="Title" 
                    SortExpression="Exp_Title" />
                <asp:BoundField DataField="Exp_When" ItemStyle-CssClass="gridview_color_b" ItemStyle-Width="100px" HeaderText="When" 
                    SortExpression="Exp_When" />
                <asp:BoundField DataField="Exp_Location" ItemStyle-CssClass="gridview_color_a" ItemStyle-Width="100px" HeaderText="Location" 
                    SortExpression="Exp_Location" />
                <asp:BoundField DataField="Exp_Description" ItemStyle-CssClass="gridview_color_b" ItemStyle-Width="200px" HeaderText="Description" 
                    SortExpression="Exp_Description" />
                <asp:ImageField DataImageUrlField="exp_Photo" ItemStyle-CssClass="gridview_color_a" ItemStyle-Width="200px" HeaderText="Photo">
                    <ControlStyle CssClass="photocolumn" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="Experience_DetailDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ExperiencesConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ExperiencesConnectionString.ProviderName %>" 
            
            
            SelectCommand="SELECT [Exp_Author], [Exp_Title], [Exp_When], [Exp_Location], [Exp_Description], [Exp_Photo] FROM [Experiences] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
</asp:Content>
